﻿using DAL;
using IService;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service
{
    public class WhLocationService : IWhLocationService
    {
        private readonly WhLocationDal dal;
        public WhLocationService(WhLocationDal dal)
        {
            this.dal = dal;
        }

        public Task<int> CreateAsync(WhLocation data)
        {
            return dal.CreateAsync(data);
        }

        public Task<int> DeleteAsync(int Id)
        {
            return dal.DeleteAsync(Id);
        }

        public Task<List<WhLocation>> GetAllAsync()
        {
            return dal.GetAllAsync();
        }

        public Task<WhLocation> GetByIdAsync(int Id)
        {
            return dal.GetByIdAsync(Id);
        }

        public Task<int> UpdateAsync(WhLocation date)
        {
            return dal.UpdateAsync(date);
        }
    }
}
